Empirical Bayes method

Empirical Bayes methods are procedures for statistical inference in which the prior distribution is estimated from the data. This approach stands in contrast to standard Bayesian methods, for which the prior distribution is fixed before any data are observed. Despite this difference in perspective, empirical Bayes may be viewed as an approximation to a fully Bayesian treatment of a hierarchical model wherein the parameters at the highest level of the hierarchy are set to their most likely values, instead of being integrated out. Empirical Bayes, also known as maximum marginal likelihood,[1] represents one approach for setting hyperparameters.

Contents

Introduction

Empirical Bayes methods can be seen as an approximation to a fully Bayesian treatment of a hierarchical Bayes model.

In, for example, a two-stage hierarchical Bayes model, observed data y = \{y_1, y_2, \dots, y_N\} are assumed to be generated from an unobserved set of parameters \theta = \{\theta_1, \theta_2, \dots, \theta_n\} according to a probability distribution p(y|\theta)\,. In turn, the parameters θ can be considered samples drawn from a population characterised by hyperparameters \eta\, according to a probability distribution p(\theta|\eta)\,. In the hierarchical Bayes model, though not in the Empirical Bayes approximation, the hyperparameters \eta\, are considered to be drawn from an unparameterized distribution p(\eta)\,.

Information about a particular quantity of interest \theta_i\; therefore comes not only from the properties of those data which directly depend on it, but also from the properties of the population of parameters \theta\; as a whole, inferred from the data as a whole, summarised by the hyperparameters \eta\;.

Using Bayes' theorem,


p(\theta|y)
= \frac{p(y | \theta) p(\theta)}{p(y)}
= \frac {p(y | \theta)}{p(y)} \int  p(\theta | \eta) p(\eta) \, d\eta \,.

In general, this integral will not be tractable analytically and must be evaluated by numerical methods; typically stochastic approximations such as from Markov Chain Monte Carlo sampling or deterministic approximations such as quadrature.

Alternatively, the expression can be written as


\begin{align}
p(\theta|y)
& = \int p(\theta|\eta, y) p(\eta | y) \; d \eta
& = \int \frac{p(y | \theta) p(\theta | \eta)}{p(y | \eta)} p(\eta | y) \; d \eta\,,
\end{align}

and we can expand


   p(\eta | y) = \int p(\eta | \theta) p(\theta | y) \; d \theta

These suggest an iterative scheme, qualitatively similar in structure to a Gibbs sampler, to evolve successively improved approximations to p(\theta|y)\; and p(\eta|y)\;. First, calculate an initial approximation to p(\theta|y)\; ignoring the \eta dependence completely; then calculate an approximation to p(\eta|y)\; based upon the initial approximate distribution of p(\theta|y)\;; then use this p(\eta|y)\; to update the approximation for p(\theta|y)\;; then update p(\eta|y)\;; and so on.

When the true distribution p(\eta|y)\; is sharply peaked, the integral determining p(\theta|y)\; may be not much changed by replacing the probability distribution over \eta\; with a point estimate \eta^{*}\; representing the distribution's peak (or, alternatively, its mean),


   p(\theta|y) \simeq \frac{p(y | \theta) \; p(\theta | \eta^{*})}{p(y | \eta^{*})}\,.

With this approximation, the above iterative scheme becomes the EM algorithm.

"Empirical Bayes" as a label can cover a wide variety of methods, but most can be regarded as an early truncation of either the above scheme or something quite like it. Point estimates, rather than the whole distribution, are typically used for the parameter(s) \eta\;; the estimates for \eta^{*}\; are typically made from the first approximation to p(\theta|y)\; without subsequent refinement; these estimates for \eta^{*}\; are usually made without considering an appropriate prior distribution for \eta.

Point estimation

Robbins method (1956): non-parametric empirical Bayes (NPEB)

We consider a case of compound sampling, where probability for each y_i (conditional on \theta_i) is specified by a Poisson distribution,

p(y_i|\theta_i)={{\theta_i}^{y_i} e^{-\theta_i} \over {y_i}!}

while the prior is unspecified except that it is also i.i.d. (call it G(\Theta)). Compound sampling arises in a variety of statistical estimation problems, such as accident rates and clinical trials. We simply seek a point prediction of \theta_i given all the observed data. Because the prior is unspecified, we seek to do this without knowledge of G (see Carlin and Louis, Sec. 3.2 and Appendix B).

Under squared error loss (SEL), the conditional expectation Ei | Yi = yi) is a reasonable quantity to use for prediction. For the Poisson compound sampling model, this quantity is

E(\theta_i|y_i) = {\int (\theta^{y%2B1} e^{-\theta} / {y_i}!)\,dG(\theta) \over {\int (\theta^y e^{-\theta} / {y_i}!)\,dG(\theta}) }.

This can be simplified by multiplying the expression by ({y_i}%2B1)/({y_i}%2B1), yielding

 E(\theta_i|y_i)= {{(y_i %2B 1) p_G(y_i %2B 1) }\over {p_G(y_i)}},

where pG is the marginal distribution obtained by integrating out θ over G.

To take advantage of this, Robbins (1955) suggested estimating the marginals with their empirical frequencies, yielding the fully non-parametric estimate as:

 E(\theta_i|y_i) \approx (y_i %2B 1) { {\#\{Y_j = y_i %2B 1\}} \over {\#\{ Y_j = y_i\}} }

(see also Good–Turing frequency estimation).

Example: Accident rates

Suppose each customer of an insurance company has an "accident rate" Θ and is insured against accidents; the probability distribution of \Theta is the underlying distribution, and is unknown. The number of accidents suffered by each customer in a specified time period has a Poisson distribution with expected value equal to the particular customer's accident rate. The actual number of accidents experienced by a customer is the observable quantity. A crude way to estimate the underlying probability distribution of the accident rate Θ is to estimate the proportion of members of the whole population suffering 0, 1, 2, 3, ... accidents during the specified time period as the corresponding proportion in the observed random sample. Having done so, it is then desired to predict the accident rate of each customer in the sample. As above, one may use the conditional expected value of the accident rate Θ given the observed number of accidents during the baseline period. Thus, if a customer suffers six accidents during the baseline period, that customer's estimated accident rate is 7 × [the proportion of the sample who suffered 7 accidents] / [the proportion of the sample who suffered 6 accidents]. Note that if the proportion of people suffering k accidents is a decreasing function of k, the customer's predicted accident rate is lower than their observed number of accidents. This shrinkage effect is typical of Empirical Bayes analyses.

Parametric empirical Bayes

If the likelihood and its prior take on simple parametric forms (such as 1- or 2-dimensional likelihood functions with simple conjugate priors), then the empirical Bayes problem is only to estimate the marginal m(y|\eta) and the hyperparameters \eta using the complete set of empirical measurements. For example, one common approach, called parametric Empirical Bayes point estimation, is to approximate the marginal using the maximum likelihood estimate (MLE), or a Moments expansion, which allows one to express the hyperparameters \eta in terms of the empirical mean and variance. This simplified marginal allows one to plug in the empirical averages into a point estimate for the prior \theta. The resulting equation for the prior \theta is greatly simplified, as shown below.

There are several common Parametric Empirical Bayes models, including the Poisson-Gamma model (below), the Beta-binomial model, the Gaussian-Gaussian model, the multinomial-Dirichlet (or multivariate Pólya) model, as well specific models for Bayesian linear regression (see below) and Bayesian multivariate linear regression. More advanced approaches include hierarchical Bayes models and Bayesian mixture models.

Poisson-Gamma model

For example, in the example above, let the likelihood be a Poisson distribution, and let the prior now be specified by the conjugate prior, which is a Gamma distribution (G(\alpha,\beta)) (where \eta = (\alpha,\beta)):

 \rho(\theta|\alpha,\beta) =   \frac{\theta^{\alpha-1}\, e^{-\theta / \beta} }{\beta^{\alpha} \Gamma(\alpha)}  \ \mathrm{for}\ \theta > 0, \alpha > 0, \beta > 0 \,\!

It is straightforward to show the posterior is also a Gamma distribution. Write

 \rho(\theta|y) \propto \rho(y|\theta) \rho(\theta|\alpha, \beta)

where we have omitted the marginal since it does not depend explicitly on \theta. Expanding terms which do depend on \theta gives the posterior as:

 \rho(\theta|y) \propto  (\theta^{y}\, e^{-\theta}) (\theta^{\alpha-1}\, e^{-\theta / \beta}) = \theta^{y%2B \alpha -1}\, e^{- \theta (1%2B1 / \beta)}

So we see that the posterior density is also a Gamma distribution G(\alpha',\beta'), where \alpha' = y %2B \alpha, and \beta' = (1%2B1 / \beta)^{-1}. Also notice that the marginal is simply the integral of the posterior over all \Theta, which turns out to be a negative binomial distribution.

To apply empirical Bayes, we will approximate the marginal using the maximum likelihood estimate (MLE). But since the posterior is a Gamma distribution, the MLE of the marginal turns out to be just the mean of the posterior, which is the point estimate E(\theta|y) we need. Recalling that the mean \mu of a Gamma distribution G(\alpha', \beta') is simply \alpha' \beta', we have

 E(\theta|y) = \alpha' \beta' = \frac{\bar{y}%2B\alpha}{1%2B1 / \beta} = \frac{\beta}{1%2B\beta}\bar{y} %2B \frac{1}{1%2B\beta} (\alpha \beta)

To obtain the values of \alpha and \beta, empirical Bayes prescribes estimating mean \alpha\beta and variance \alpha\beta^2 using the complete set of empirical data.

The resulting point estimate  E(\theta|y) is therefore like a weighted average of the sample mean \bar{y} and the prior mean \mu = \alpha\beta. This turns out to be a general feature of empirical Bayes; the point estimates for the prior (i.e. mean) will look like a weighted averages of the sample estimate and the prior estimate (likewise for estimates of the variance).

See also

References

  1. ^ C.M. Bishop (2005). Neural networks for pattern recognition. Oxford University Press
  • Robbins, Herbert (1956). "An Empirical Bayes Approach to Statistics". Proceedings of the Third Berkeley Symposium on Mathematical Statistics and Probability, Volume 1: Contributions to the Theory of Statistics: 157–163. MR0084919. http://projecteuclid.org/euclid.bsmsp/1200501653. Retrieved 2008-03-15. 
  • Carlin, Bradley P.; Louis, Thomas A. (2000). Bayes and Empirical Bayes Methods for Data Analysis (2nd ed.). Chapman & Hall/CRC. ISBN 1584881704. 
  • Peter E. Rossi, Greg M. Allenby, and Robert McCulloch, Bayesian Statistics and Marketing, John Wiley & Sons, Ltd, 2006
  • Casella, George (May 1985). "An Introduction to Empirical Bayes Data Analysis". American Statistician (American Statistical Association) 39 (2): 83–87. doi:10.2307/2682801. JSTOR 2682801. MR0789118. 
  • Nikulin, Mikhail (1987). "Bernstein's regularity conditions in a problem of empirical Bayesian approach". Journal of Soviet Mathematics, 36 (5): 596–600.. doi:10.1007/BF01093293. 

External links